package com.qing.deep_in.springboot.chapter4.proxy;

/**
 * @author guoqf
 * @date 2021/8/20 14:16
 */
public class InterceptorImpl implements Interceptor {

    private Object target;

    public InterceptorImpl(Object target) {
        this.target = target;
    }

    @Override
    public boolean before() {
        System.out.println("======before===========");
        return true;
    }

    @Override
    public void after() {
        System.out.println("======before===========");
    }

    @Override
    public Object around() {
        return null;
    }

    @Override
    public boolean isAround() {
        return false;
    }

    @Override
    public Object afterReturning() {
        return null;
    }

    @Override
    public Object afterThrowing() {
        return null;
    }
}
